The fzero command finds a point where the function changes sign. If the function is continuous, this is also a point where the function has a value near zero.
x = fzero( fun , x0 ) tries to find a point x where fun(x) = 0 . This solution is where fun(x) changes sign— fzero cannot find a root of a function such as x^2 ... Description · Examples · Input Arguments · Output Arguments